export default class UIUtils {
  public static move(this: UIUtils, node: cc.Node, targertParent: cc.Node,cleanup:boolean=false) {
    let wp = node.convertToWorldSpaceAR(cc.v3(0, 0, 0)); //获取世界坐标
    let pp = targertParent.convertToNodeSpaceAR(wp);
    node.removeFromParent(cleanup);
    node.position = pp;
    targertParent.addChild(node);
    return this;
  }

  public static log(this: UIUtils) {
    console.log("uiutils log", this);
  }
}
